/* 4.1 顶部导航栏 */
.nav-list {
  list-style: none;
  display: flex;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
}

.has-submenu:hover .submenu {
  display: block;
}

/* 4.2 搜索框 */
.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 5px;
  border: 1px solid #ccc;
}

.search-box button {
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* 4.3 轮播图 */
.carousel {
  position: relative;
}

.carousel-images {
  display: flex;
  overflow: hidden;
}

.carousel-images img {
  width: 100%;
  height: auto;
  display: none;
}

.carousel-images img.active {
  display: block;
}

.carousel-tabs {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.carousel-tabs .tab {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-tabs .tab.active {
  background-color: #007bff;
}

/* 4.4 带 Tab 栏的列表 */
.tab-list-tabs {
  list-style: none;
  display: flex;
}

.tab-list-tab {
  padding: 5px 10px;
  cursor: pointer;
}

.tab-list-tab.active {
  background-color: #007bff;
  color: #fff;
}

.tab-list-content {
  margin-top: 10px;
}

.tab-list-pane {
  display: none;
}

.tab-list-pane.active {
  display: block;
}

/* 4.4 按钮 */
.download-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #0056b3;
}

.newbie-button {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333;
  border: none;
  cursor: pointer;
  position: relative;
}

.newbie-button:hover::after {
  content: "额外功能";
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  color: #fff;
  padding: 5px;
}

/* 4.4 赛事中心的树形布局 */
.event-tree ul {
  list-style: none;
  padding-left: 20px;
}

.event-tree li {
  position: relative;
}

.event-tree li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  border-left: 1px solid #ccc;
  height: 100%;
}

.event-tree li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -10px;
  border-top: 1px solid #ccc;
  width: 10px;
}

/* 4.4 英雄资料 */
.hero-categories {
  display: flex;
  margin-bottom: 10px;
}

.hero-category {
  padding: 5px 10px;
  cursor: pointer;
}

.hero-category.active {
  background-color: #007bff;
  color: #fff;
}

.hero-list {
  margin-top: 10px;
}

.hero-category-pane {
  display: none;
}

.hero-category-pane.active {
  display: block;
}